/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testing;

import com.application.AutoIncrement;

/**
 *
 * @author node1
 */
public class TestSyn {
  
  public static void main(String[] args) throws Exception{
    final TestSyn tus = new TestSyn();
    final AutoIncrement auto = AutoIncrement.getInstance();
    
    Runnable runA = new Runnable() {
      public void run() {
         auto.getAutoIncrement("Status");
      }
    };

    Thread ta = new Thread(runA, "threadA");
    ta.start();

    Thread.sleep(2000);

    Runnable runB = new Runnable() {
      public void run() {
         auto.getAutoIncrement("Status");
      }
    };

    Thread tb = new Thread(runB, "threadB");
    tb.start();
    
    
    
  }    
}